Qt-UI 产品API文档
产品文档目录

UIGQComboBox

下拉列表控件

控件派生关系

class UIGQComboBox : public QComboBox, public IUIGQControlBase

所有QComboBox的信号事件可以继续使用

    void editTextChanged(const QString &);
    void activated(int index);
    void activated(const QString &);
    void highlighted(int index);
    void highlighted(const QString &);
    void currentIndexChanged(int index);
    void currentIndexChanged(const QString &);
    void currentTextChanged(const QString &);

文字改变、激活索引、高亮、当前项目改变等事件

主要方法

1、设置和获取背景颜色

void setBackground(UIGQtLib::CtrlState state, const FillStyle& style);
const FillStyle& getBackground(UIGQtLib::CtrlState state);

2、设置和获取右侧按钮的背景

void setBtnBackground(UIGQtLib::CtrlState state, const FillStyle& style);
const FillStyle& getBtnBackground(UIGQtLib::CtrlState state);

3、设置右侧下拉按钮的图标

void setBtnIcon(UIGQtLib::CtrlState state, const QString& path);
const QString& getBtnIcon(UIGQtLib::CtrlState state);

4、设置获取文字样式

void setTextStyle(UIGQtLib::CtrlState state, const TextStyleDesc& style);
const TextStyleDesc& getTextStyle(UIGQtLib::CtrlState state);

5、设置下拉弹出的菜单背景

void setPopupBackground(const FillStyle& style);
const FillStyle& getPopupBackground();

6、设置下拉菜单的每项的背景

void setItemBackground(UIGQtLib::CtrlState state, const FillStyle& style);
const FillStyle& getItemBackground(UIGQtLib::CtrlState state);

7、设置下拉项的文字样式

void setItemTextStyle(UIGQtLib::CtrlState state, const TextStyleDesc& style);
const TextStyleDesc& getItemTextStyle(UIGQtLib::CtrlState state);

8、设置每一项的高度

void setItemHeight(int height);
int getItemHeight();

Qt商用模板项目

支持C++/Python语言,支持Windows\Linux\MacOS系统,支持X86\ARM\MIPS架构

img02

Qt Stock Exchange Sys

View more

Qt股票交易系统

Qt Stock Exchange System

img02

Qt Robot

View more

QtRobot 视频高清机器人控制系统

Qt Robot System

img02

Qt LED Editor

View more

Qt LED 灯效编辑器

Qt LED Editor

img02

Qt IOT Bike

View more

Qt IOT 物联网自行车

Qt IOT Bike

img02

Qt ECG Monitor

View more

Qt嵌入式床旁心电监护仪

Qt ECG Monitor

img02

Qt AutoDashboard

View more

Qt汽车仪表盘系统

Qt Auto Dashboard

img02

Qt DataMonitor

View more

Qt数据监控系统

Qt Data Monitor

img02

Qt Conference

View more

Qt会议终端系统

Qt Conference System

img02

Qt Video Player

View more

Qt视频播放器

Qt Video Player

img02

Qt NetDisk

View more

Qt网盘系统

Qt SkyDrive

img02

Qt IM

View more

Qt即时通讯系统

Qt IM

img02

Qt Cashier

View more

Qt便利店收银系统

Qt CashierSystem